﻿using Prometheus;
using System;

namespace Helpers
{
    public static class PrometheusHelper
    {
        private static MetricPusher _metricPusher;
        /// <summary>
        /// 开启推送
        /// </summary>
        /// <param name="options"></param>
        public static void StartMetricPusher(MetricPusherOptions options)
        {
            if (_metricPusher == null)
            {
                _metricPusher = new MetricPusher(options);
                _metricPusher.Start();
            }
        }
    }
}
